package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysWorkLogDiaryMapper;
import com.ruoyi.system.domain.SysWorkLogDiary;
import com.ruoyi.system.service.ISysWorkLogDiaryService;

/**
 * 运行记事Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-02
 */
@Service
public class SysWorkLogDiaryServiceImpl implements ISysWorkLogDiaryService 
{
    @Autowired
    private SysWorkLogDiaryMapper sysWorkLogDiaryMapper;

    /**
     * 查询运行记事
     * 
     * @param diaryId 运行记事ID
     * @return 运行记事
     */
    @Override
    public SysWorkLogDiary selectSysWorkLogDiaryById(Long diaryId)
    {
        return sysWorkLogDiaryMapper.selectSysWorkLogDiaryById(diaryId);
    }

    /**
     * 查询运行记事列表
     * 
     * @param sysWorkLogDiary 运行记事
     * @return 运行记事
     */
    @Override
    public List<SysWorkLogDiary> selectSysWorkLogDiaryList(SysWorkLogDiary sysWorkLogDiary)
    {
        return sysWorkLogDiaryMapper.selectSysWorkLogDiaryList(sysWorkLogDiary);
    }

    /**
     * 新增运行记事
     * 
     * @param sysWorkLogDiary 运行记事
     * @return 结果
     */
    @Override
    public int insertSysWorkLogDiary(SysWorkLogDiary sysWorkLogDiary)
    {
        return sysWorkLogDiaryMapper.insertSysWorkLogDiary(sysWorkLogDiary);
    }

    /**
     * 修改运行记事
     * 
     * @param sysWorkLogDiary 运行记事
     * @return 结果
     */
    @Override
    public int updateSysWorkLogDiary(SysWorkLogDiary sysWorkLogDiary)
    {
        return sysWorkLogDiaryMapper.updateSysWorkLogDiary(sysWorkLogDiary);
    }

    /**
     * 批量删除运行记事
     * 
     * @param diaryIds 需要删除的运行记事ID
     * @return 结果
     */
    @Override
    public int deleteSysWorkLogDiaryByIds(Long[] diaryIds)
    {
        return sysWorkLogDiaryMapper.deleteSysWorkLogDiaryByIds(diaryIds);
    }

    /**
     * 删除运行记事信息
     * 
     * @param diaryId 运行记事ID
     * @return 结果
     */
    @Override
    public int deleteSysWorkLogDiaryById(Long diaryId)
    {
        return sysWorkLogDiaryMapper.deleteSysWorkLogDiaryById(diaryId);
    }
}
